import request from '@/utils/request'

// 查询数据列表
export function resourceList(query) {
  return request({
    url: '/api/v1/admin/system/resource/list',
    method: 'get',
    params: query
  })
}


// 删除文件
export function resourceRemove(name) {
  return request({
    url: '/api/v1/admin/system/resource/remove',
    method: 'delete',
    data: name
  })
}
//一键删除失效图片
export function resourceRemovePic() {
  return request({
    url: '/api/v1/admin/system/resource/removePic',
    method: 'delete'
  })
}

